package com.patterns.factory.abstractfactory;

public class Test {
	public static void main(String[] args) {
		// >> 组装高端车
		CarFactory higher = new HighCarFactory();
		Motor highMotor = higher.installMotor();
		highMotor.install();
		Tyre highTyre = higher.installTyre();
		highTyre.install();
		// >> 组装低端车
		CarFactory lower = new LowCarFactory();
		Motor lowMotor = lower.installMotor();
		lowMotor.install();
		Tyre lowTyre = lower.installTyre();
		lowTyre.install();
	}
}
